/**
 * Copyright (c) Enalean SAS, 2011-2016. All rights reserved
 * Copyright (c) Xerox Corporation, Codendi Team, 2001-2008. All rights reserved
 *
 * Originally written by Nicolas Terray, 2008
 *
 * This file is a part of Tuleap.
 *
 * Tuleap is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Tuleap is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Tuleap; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
@import 'utils/utils';

/********  general   **********/
body {
    margin: 0;
    background: #bcbcad;
}

body.lab-mode {
    padding-bottom: 3em;
}

.center {
    text-align: center;
}

.alignright {
    text-align: right
}

.left {
    text-align: left;
}

.error {
    font-weight: bold;
    color: #980000;
}

.feedback {
    color: red;
}

.bold {
    font-weight: bold;
}

.disable {
    color: gray;
}

.highlight {
    color: red;
}

.newproject {
    background-color: #EEEEEE;
}

.top_up {
    color: #009900;
}

.top_down {
    color: #CC0000;
}

.command {
    font-family: "Courier New", courier, sans-serif;
}

.subdomain {
    color: green;
}

.bg_confirmdownload {
    background-color: #F7F7F7;
}

img {
    border: none;
}

/********   links    **********/
a:link, a:visited {
    text-decoration: none;
    color: #8b4020
}

a:active {
    text-decoration: none;
    color: #000000
}

a:hover {
    text-decoration: underline;
    color: #ff0000;
}

a.btn {
    color: #222;
    &:hover {
        color: #222;
    }
    &:visited {
        color: #222;
    }
    &:active {
        color: #222;
    }
}

a.btn.btn-primary {
    color: #fff;
    &:hover {
        color: #fff;
    }
    &:visited {
        color: #fff;
    }
    &:active {
        color: #fff;
    }
}

/******** priorities **********/
.priora {
    background-color: #dadada;
}

.priorb {
    background-color: #dad0d0;
}

.priorc {
    background-color: #dacaca;
}

.priord {
    background-color: #dac0c0;
}

.priore {
    background-color: #dababa;
}

.priorf {
    background-color: #dab0b0;
}

.priorg {
    background-color: #daaaaa;
}

.priorh {
    background-color: #da9090;
}

.priori {
    background-color: #da8a8a;
}

/* .footer { color: #333333; } */
.footer {
    padding-top: 1.5em;
}

.standardtable {
    width: 99%;
    border-spacing: 0;
    border: 0;
    color: #333333;
}

/* content frame specific */
.contenttable {
    background-color: #F7F7F7;
    vertical-align: top;
    width: 99%;
    border-spacing: 0;
    border: 0;
}

.row_below_outertabs,
.outer_body_row,
.end_inner_body_row,
.below_tabs_selected_toptab {
    background: #e8e8e0;
}

.start_main_body_row,
.main_body_row,
.end_main_body_row,
.below_tabs_selected_bottomtab {
    background: #f7f7f7;
}

.below_tabs {
    background: #909090;
}

.form_search_box {
    margin-right: 1em;
}

select[name=type_of_search] {
    width: auto;
}

/* left menu specific */
.menuframe {
    background-color: #e8e8e0;
    vertical-align: top;
    text-align: left;
    width: 60px;
}

.menutable {
    background-color: #e8e8e0;
    vertical-align: top;
    width: 150px;
    border-spacing: 0;
    border: 0;
}

.menutitle {
    vertical-align: top;
    font-weight: bold;
    text-align: left;
    color: #333333;
}

.menuitem {
    vertical-align: top;
    text-align: right;
    color: #333333;
}

/* group menu specific (see tabs and tabselect too) */
.groupmenutable {
    background-color: #e8e8e0;
    width: 100%;
    border-top: thin solid #000000;
    border-bottom: thin solid #000000;
}

/* classic box */
.boxtable {
    width: 99%;
    vertical-align: top;
    border-spacing: 1px;
    border: 0;
}

.boxtitle {
    background-color: #E0DDD2;
    font-weight: bold;
    text-align: center;
    color: #000000;
}

.boxitem {
    background-color: transparent;
    text-align: left;
    color: #333333;
}

.boxitemalt {
    text-align: left;
    background-color: #ffffff;
}

.boxitemgrey {
    text-align: left;
    background-color: #efefef;
}

.boxhighlight {
    background-color: #e8e8e0;
    text-align: left;
    color: #333333;
}

td.matrix_cell.matrix_highlight_col,
tr.boxitem:hover {
    background-color: #fffff0;
}

td.matrix_cell.matrix_highlight_col,
tr.boxitemalt:hover {
    background-color: #fffff0;
}

.boxtop {
}

.boxtop_top {
}

.boxtop_left {
    background: url('../images/box-topleft.png') top right no-repeat;
}

.boxtop_center {
    background: #e0ddd2 url('../images/box-grad.png') top left repeat-x;
}

.boxtop_right {
    background: url('../images/box-topright.png') top left no-repeat;
}

.boxtop_inner {
    background: #eaecef url('../images/vert-grad.png') top left repeat-x;
}

.boxmiddle {
    background: #e0ddd2 url('../images/box-grad.png') top left repeat-x;
}

.boxmiddle_inner {
    background: transparent url('../images/vert-grad.png') top left repeat-x;
}

.boxspace {
    font-size: 2pt;
}

.maintitlebar {
    color: #FFFFFF;
}

.slogan {
    font-weight: bold;
}

.footer {
    color: white;
}

.tabs {
    color: #000000;
}

.tabs:visited {
    color: #000000;
}

.tabs:hover {
    color: #FF0000;
}

.tabselect {
    color: #000000;
    font-weight: bold;
}

.tabselect:visited {
    color: #000000;
    font-weight: bold;
}

.tabselect:hover {
    color: #FF0000;
    font-weight: bold;
}

.titlebar {
    text-decoration: none;
    color: #000000;
    font-weight: bold;
}

.develtitle {
    color: #000000;
    font-weight: bold;
}

.legallink {
    color: #000000;
    font-weight: bold;
}

.sortbutton {
    color: #000000;
    text-decoration: none;
}

.sortbutton:hover {
    text-decoration: underline;
}

.sortbutton:visited {
    color: #000000;
}

/* calendar (fixed font size) */
.calendar_month {
    background-color: #E0DDD2;
}

.calendar_day {
    background-color: #FFE6B5;
}

.calendar_currentday {
    background-color: #FFFFA3;
}

.calendar_nextmonth {
    background-color: #DBEAF5;
}

.calendar_daymonth {
    background-color: white;
}

.calendar_font_othermonth {
    color: gray;
}

.calendar_font {
    color: black;
}

.calendar_font_month {
    color: black;
}

.calendar_font_day {
    color: black;
}

/* Help classes */
.bg_help {
    background-color: #ffffff;
}

/* text with tooltips (e.g. artifact fields) */
.artifact_field_tooltip {
    text-decoration: none;
    color: #000000
}

.artifact_field_tooltip:hover {
    text-decoration: none;
    color: #ff0000
}

#footer_debug {
    background: white url(../images/debug_gradient.png) top left repeat-x;
    color: #333;
    padding-top: 24px;
    padding-bottom: 1em;
}

/* dynamic fields                                */
/*************************************************/
/* Only background-color property is used        */
/* Only full hexa are allowed                    */
/* don't use names (purple, red, yellow)         */
/* don't use half hexa (#FF0000 instead of #F00) */
.codendi_field_dependencies_highlight_change {
    /* background-color: #8b4020; */
}

/* field sets */
.fieldset_separator {
    text-align: center;
    background-color: #CCCCCC;
}

td.artifact_spacer {
    width: 5%;
}

.iframe_service {
    width: 100%;
    height: 650px;
    border: 1px solid #ccc;
}

.iframe_showonly {
    text-align: right;
    font-size: 0.85em;
}

/* Start homepage & footer customization */
#homepage {
    margin: auto;
    margin-top: 1em;
    margin-bottom: 2em;
}

#homepage_speech {
    float: left;
    width: 715px;
    margin-right: 5px;
}

#homepage_boxes {
    float: right;
    width: 235px;
    margin-left: 5px;
}

#homepage_news {
    clear: both;
}

#homepage .hero-unit {
    background: #f3f4f6 url(../images/homepage/image-homepage-tuleap.png) no-repeat;
    min-height: 220px;
}

#homepage img {
    vertical-align: middle;
}

#homepage hr {
    margin: 18px 0;
    border: 0;
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #ffffff;
}

.footer ul,
#homepage ul {
    padding: 0;
    margin: 0 0 9px 25px;
}

.footer ul.unstyled,
#homepage ul.unstyled {
    margin-left: 0;
    list-style: none;
}

#homepage h2,
#homepage h3,
#homepage h4,
.footer h3 {
    margin: 0;
    font-size: 1.2em;
}

#homepage h2 {
    font-size: 24px;
    line-height: 36px;
}

#homepage h3 {
    font-size: 18px;
    line-height: 27px;
}

#homepage p {
    margin-top: 0;
}

.footer li {
    line-height: 18px;
}

.footer.container {
    color: #666;
}

/* End */

/* Start BOOTSTRAP OVERRIDES */
h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.3em;
}

blockquote p {
    font-size: 1em;
}

input[type="file"] {
    margin-top: -13px;
}

legend {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.dropdown-menu {
    z-index: 3000;
}

.modal {
    form {
        margin: 0;
    }
}

.dropdown-submenu.pull-left.glued > .dropdown-menu {
    left: 0%;
    margin: 0;
    transform: translateX(-100%);
}

/* End */

#browser_deprecated {
    background: #CC0000;
    text-align: center;
    padding: 3px;
    color: #EEE;

    a {
        color: #FFF;
        font-weight: bold;
    }
}

#filter_type {
    width: 120px;
}
